﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows;

namespace HA.ModFlow.Application
{
   public static class CommandManager
    {


       public static void InitMainWindow(Window window)
       {
           CommandModule.mainWindow = window;
           DataCommands.mainWindow = window;
           Data2Commands.mainWindow = window;
           MT3DCommands.mainWindow = window;
           ModflowV2Commands.mainWindow = window;
           DataOperationModule.mainWindow = window;
           GisModule.mainWindow = window;
          
       }



        /// <summary>
        /// 将命令绑定到窗体
        /// </summary>
        /// <param name="window"></param>
       public static void BindCommandsToWindow(Window window)
       {
           CommandModule.DefaultBinder.BindCommandsToWindow(window);

           GISCommands.BindCommandsToWindow(window);

           VTKCommands.BindCommandsToWindow(window);

           DataCommands.BindCommandsToWindow(window);

           Data2Commands.BindCommandsToWindow(window); //补充命令

           MT3DCommands.BindCommandsToWindow(window);



           //modflow补充命令

           ModflowV2Commands.BindCommandsToWindow(window);


       }


       public static void BindKeyToWindow(Window window)
       {

            CommandModule.DefaultBinder.BindKeyToWindow(window);

       }
    }
}
